package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.InventoryAdjustLogMapper;
import com.ruoyi.system.domain.InventoryAdjustLog;
import com.ruoyi.system.service.IInventoryAdjustLogService;

/**
 * 库存调整日志Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-15
 */
@Service
public class InventoryAdjustLogServiceImpl implements IInventoryAdjustLogService 
{
    @Autowired
    private InventoryAdjustLogMapper inventoryAdjustLogMapper;

    /**
     * 查询库存调整日志
     * 
     * @param id 库存调整日志主键
     * @return 库存调整日志
     */
    @Override
    public InventoryAdjustLog selectInventoryAdjustLogById(Long id)
    {
        return inventoryAdjustLogMapper.selectInventoryAdjustLogById(id);
    }

    /**
     * 查询库存调整日志列表
     * 
     * @param inventoryAdjustLog 库存调整日志
     * @return 库存调整日志
     */
    @Override
    public List<InventoryAdjustLog> selectInventoryAdjustLogList(InventoryAdjustLog inventoryAdjustLog)
    {
        return inventoryAdjustLogMapper.selectInventoryAdjustLogList(inventoryAdjustLog);
    }

    /**
     * 新增库存调整日志
     * 
     * @param inventoryAdjustLog 库存调整日志
     * @return 结果
     */
    @Override
    public int insertInventoryAdjustLog(InventoryAdjustLog inventoryAdjustLog)
    {
        return inventoryAdjustLogMapper.insertInventoryAdjustLog(inventoryAdjustLog);
    }

    /**
     * 修改库存调整日志
     * 
     * @param inventoryAdjustLog 库存调整日志
     * @return 结果
     */
    @Override
    public int updateInventoryAdjustLog(InventoryAdjustLog inventoryAdjustLog)
    {
        return inventoryAdjustLogMapper.updateInventoryAdjustLog(inventoryAdjustLog);
    }

    /**
     * 批量删除库存调整日志
     * 
     * @param ids 需要删除的库存调整日志主键
     * @return 结果
     */
    @Override
    public int deleteInventoryAdjustLogByIds(Long[] ids)
    {
        return inventoryAdjustLogMapper.deleteInventoryAdjustLogByIds(ids);
    }

    /**
     * 删除库存调整日志信息
     * 
     * @param id 库存调整日志主键
     * @return 结果
     */
    @Override
    public int deleteInventoryAdjustLogById(Long id)
    {
        return inventoryAdjustLogMapper.deleteInventoryAdjustLogById(id);
    }

    @Override
    public int deleteInventoryAdjustLogByInventorId(Long id)
    {
        return inventoryAdjustLogMapper.deleteInventoryAdjustLogByInventorId(id);
    }

    @Override
    public void insertInventoryAdjustLogList(List<InventoryAdjustLog> inventoryAdjustLogList) {
        inventoryAdjustLogMapper.insertInventoryAdjustLogList(inventoryAdjustLogList);
    }
}
